<template>
    <Game v-if="gamePlay" @end="gamePlay = false"></Game>
    <Main v-else @start="gamePlay = true"></Main>
</template>

<script setup>
import Game from '@/views/Game.vue'
import Main from '@/views/Main.vue'
import { ref } from 'vue';

const gamePlay = ref(false)
</script>

<style>
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: '中文像素字体';
}

@font-face {
    font-family: '中文像素字体';
    src: url('/public/中文像素字体.ttf') format('truetype')
}
</style>
